package com.xinyue.ext.data;

import java.util.List;

/**
 * 封装XML数据
 * 包括所有Entity、Finder
 */
public class EntityData {
	/**是否是many-many对象*/
	private boolean manyMapping;
	/**包名*/
	private String beanPackage;
	/**包名*/
	private String serPackage;
	/**包名*/
	private String contPackage;
	/**导入JAVA类*/
	private List<String> imports;
	/**表名*/
	private String table;
	/**类名*/
	private String className;
	/**id属性*/
	private FieldData id;
	/**属性集合*/
	private List<FieldData> fields;
	/**join属性集合*/
	private List<FieldData> joins;
	/**自增主键初始值*/
	private String start;
	/**order by语句*/
	private String order;
	
	/**DAO接口*/
	private DaoData dao;
	
	/**是否生成service文件*/
	private boolean service;
	/**是否生成controller文件*/
	private boolean controller;

	//getter setter
	public String getBeanPackage() {
		return beanPackage;
	}
	public void setBeanPackage(String beanPackage) {
		this.beanPackage = beanPackage;
	}
	public List<String> getImports() {
		return imports;
	}
	public void setImports(List<String> imports) {
		this.imports = imports;
	}
	public String getTable() {
		return table;
	}
	public void setTable(String table) {
		this.table = table;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public FieldData getId() {
		return id;
	}
	public void setId(FieldData id) {
		this.id = id;
	}
	public List<FieldData> getFields() {
		return fields;
	}
	public void setFields(List<FieldData> fields) {
		this.fields = fields;
	}
	public DaoData getDao() {
		return dao;
	}
	public void setDao(DaoData dao) {
		this.dao = dao;
	}
	public String getOrder() {
		return order;
	}
	public void setOrder(String order) {
		this.order = order;
	}
	public String getStart() {
		return start;
	}
	public void setStart(String start) {
		this.start = start;
	}
	public boolean isManyMapping() {
		return manyMapping;
	}
	public void setManyMapping(boolean manyMapping) {
		this.manyMapping = manyMapping;
	}
	public List<FieldData> getJoins() {
		return joins;
	}
	public void setJoins(List<FieldData> joins) {
		this.joins = joins;
	}
	public boolean isService() {
		return service;
	}
	public void setService(boolean service) {
		this.service = service;
	}
	public boolean isController() {
		return controller;
	}
	public void setController(boolean controller) {
		this.controller = controller;
	}
	public String getSerPackage() {
		return serPackage;
	}
	public void setSerPackage(String serPackage) {
		this.serPackage = serPackage;
	}
	public String getContPackage() {
		return contPackage;
	}
	public void setContPackage(String contPackage) {
		this.contPackage = contPackage;
	}
}
